for word in "Python":
    if word =="o":
        break      # 结束循环
    print(word,end="")